package cn.edu.hust.youth.tzb.service;


import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
public class OnlineCounterListener implements HttpSessionListener{
    public void sessionCreated(HttpSessionEvent hse) {
        OnlineCounter.raise();
        //System.out.println("*********"+OnlineCounter.getOnline());
    }
    public void sessionDestroyed(HttpSessionEvent hse) {
        OnlineCounter.reduce();
    }
}
